package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoTariningInteror;
import com.muyu.danmo.mapper.DanmoTariningInterorMapper;
import com.muyu.danmo.service.IDanmoTariningInterorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 培训班内景照片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoTariningInterorServiceImpl implements IDanmoTariningInterorService
{
    @Autowired
    private DanmoTariningInterorMapper danmoTariningInterorMapper;

    /**
     * 查询培训班内景照片
     *
     * @param id 培训班内景照片主键
     * @return 培训班内景照片
     */
    @Override
    public DanmoTariningInteror selectDanmoTariningInterorById(Long id)
    {
        return danmoTariningInterorMapper.selectDanmoTariningInterorById(id);
    }

    /**
     * 查询培训班内景照片列表
     *
     * @param danmoTariningInteror 培训班内景照片
     * @return 培训班内景照片
     */
    @Override
    public List<DanmoTariningInteror> selectDanmoTariningInterorList(DanmoTariningInteror danmoTariningInteror)
    {
        return danmoTariningInterorMapper.selectDanmoTariningInterorList(danmoTariningInteror);
    }

    /**
     * 新增培训班内景照片
     *
     * @param danmoTariningInteror 培训班内景照片
     * @return 结果
     */
    @Override
    public int insertDanmoTariningInteror(DanmoTariningInteror danmoTariningInteror)
    {
        return danmoTariningInterorMapper.insertDanmoTariningInteror(danmoTariningInteror);
    }

    /**
     * 修改培训班内景照片
     *
     * @param danmoTariningInteror 培训班内景照片
     * @return 结果
     */
    @Override
    public int updateDanmoTariningInteror(DanmoTariningInteror danmoTariningInteror)
    {
        return danmoTariningInterorMapper.updateDanmoTariningInteror(danmoTariningInteror);
    }

    /**
     * 批量删除培训班内景照片
     *
     * @param ids 需要删除的培训班内景照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTariningInterorByIds(Long[] ids)
    {
        return danmoTariningInterorMapper.deleteDanmoTariningInterorByIds(ids);
    }

    /**
     * 删除培训班内景照片信息
     *
     * @param id 培训班内景照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoTariningInterorById(Long id)
    {
        return danmoTariningInterorMapper.deleteDanmoTariningInterorById(id);
    }
}
